package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-29
 */
public class GoodsStock extends Model<GoodsStock> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 仓库id
     */
    private String houseId;

    /**
     * 数量(基本单位数量)
     */
    private BigDecimal num;

    /**
     * 时间
     */
    private Date time;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }
    public BigDecimal getNum() {
        return num;
    }

    public void setNum(BigDecimal num) {
        this.num = num;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GoodsStock{" +
            "id=" + id +
            ", goodsId=" + goodsId +
            ", houseId=" + houseId +
            ", num=" + num +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
